//
//  WBStatus.swift
//  XLWB
//
//  Created by MacBook on 16/7/2.
//  Copyright © 2016年 MacBook. All rights reserved.
//

import UIKit
import YYModel
class WBStatus: NSObject {

    var id: Int64 = 0
    //信息内容
    var text: String?
    
    /// 转发数
    var reposts_count: Int = 0
    /// 评论数
    var comments_count: Int = 0
    /// 点赞数
    var attitudes_count: Int = 0

    //微博创建时间字符串
    var created_at: String?
    //微博来源
    var source: String? {
        
        didSet {
            
            if source?.dd_href()?.text == nil {
                return
            }
            source = "来自于" + (source?.dd_href()?.text ?? "")
            
        }
    }

    
    //微博用户---和服务器返回的key要一致
    var user: WBUser?
    
    //被转发的原创微博
    var retweeted_status: WBStatus?
    
    //微博配图模型数组
    var pic_urls: [WBStatusPicture]?
    
    override var description: String {
    
    return yy_modelDescription()
    
    }
    
    class func modelContainerPropertyGenericClass() -> [String: AnyClass] {
    
    
        return ["pic_urls": WBStatusPicture.self]
    
    }
    
}
